package org.pearl.springboot.minio.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;
import cn.hutool.crypto.digest.MD5;

import java.io.File;

/**
 * Created by TD on 2022/3/10
 */
public class Md5Test {
    public static void main(String[] args) {
        Digester md5 = new Digester(DigestAlgorithm.MD5);
        File file=new File("F:\\AuthUser.java");
        String digestHex = md5.digestHex(file);
        System.out.println(digestHex);// 835bb25fab66d6fc70ea497f49363194
    }
}
